package com.caipin.domain.table;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:37
 * @Description: TODO
 */
@TableName("t_security_image")
public class SecurityImage {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String base64;

    private String deviceId;

    private Integer channelId;

    private String location;

    private String snapTime;

    private String imageSrc;

    public com.caipin.domain.table.SecurityImage setId(Long id) {
        this.id = id;
        return this;
    }

    public com.caipin.domain.table.SecurityImage setBase64(String base64) {
        this.base64 = base64;
        return this;
    }

    public com.caipin.domain.table.SecurityImage setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        return this;
    }

    public com.caipin.domain.table.SecurityImage setChannelId(Integer channelId) {
        this.channelId = channelId;
        return this;
    }

    public com.caipin.domain.table.SecurityImage setLocation(String location) {
        this.location = location;
        return this;
    }

    public com.caipin.domain.table.SecurityImage setSnapTime(String snapTime) {
        this.snapTime = snapTime;
        return this;
    }

    public com.caipin.domain.table.SecurityImage setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.table.SecurityImage))
            return false;
        com.caipin.domain.table.SecurityImage other = (com.caipin.domain.table.SecurityImage)o;
        if (!other.canEqual(this))
            return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id))
            return false;
        Object this$base64 = getBase64(), other$base64 = other.getBase64();
        if ((this$base64 == null) ? (other$base64 != null) : !this$base64.equals(other$base64))
            return false;
        Object this$deviceId = getDeviceId(), other$deviceId = other.getDeviceId();
        if ((this$deviceId == null) ? (other$deviceId != null) : !this$deviceId.equals(other$deviceId))
            return false;
        Object this$channelId = getChannelId(), other$channelId = other.getChannelId();
        if ((this$channelId == null) ? (other$channelId != null) : !this$channelId.equals(other$channelId))
            return false;
        Object this$location = getLocation(), other$location = other.getLocation();
        if ((this$location == null) ? (other$location != null) : !this$location.equals(other$location))
            return false;
        Object this$snapTime = getSnapTime(), other$snapTime = other.getSnapTime();
        if ((this$snapTime == null) ? (other$snapTime != null) : !this$snapTime.equals(other$snapTime))
            return false;
        Object this$imageSrc = getImageSrc(), other$imageSrc = other.getImageSrc();
        return !((this$imageSrc == null) ? (other$imageSrc != null) : !this$imageSrc.equals(other$imageSrc));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.table.SecurityImage;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $base64 = getBase64();
        result = result * 59 + (($base64 == null) ? 43 : $base64.hashCode());
        Object $deviceId = getDeviceId();
        result = result * 59 + (($deviceId == null) ? 43 : $deviceId.hashCode());
        Object $channelId = getChannelId();
        result = result * 59 + (($channelId == null) ? 43 : $channelId.hashCode());
        Object $location = getLocation();
        result = result * 59 + (($location == null) ? 43 : $location.hashCode());
        Object $snapTime = getSnapTime();
        result = result * 59 + (($snapTime == null) ? 43 : $snapTime.hashCode());
        Object $imageSrc = getImageSrc();
        return result * 59 + (($imageSrc == null) ? 43 : $imageSrc.hashCode());
    }

    public String toString() {
        return "SecurityImage(id=" + getId() + ", base64=" + getBase64() + ", deviceId=" + getDeviceId() + ", channelId=" + getChannelId() + ", location=" + getLocation() + ", snapTime=" + getSnapTime() + ", imageSrc=" + getImageSrc() + ")";
    }

    public Long getId() {
        return this.id;
    }

    public String getBase64() {
        return this.base64;
    }

    public String getDeviceId() {
        return this.deviceId;
    }

    public Integer getChannelId() {
        return this.channelId;
    }

    public String getLocation() {
        return this.location;
    }

    public String getSnapTime() {
        return this.snapTime;
    }

    public String getImageSrc() {
        return this.imageSrc;
    }
}

